#=====================================================================================================================================#
#                                                                                                                                     #
# Title: "Americans’ Responses to COVID-19 and the Conditional Role of Dispositional Needs for Security: A Replication and Extension" #
# Authors: Adam R. Panish, Trent Ollerenshaw, & Joseph A. Vitriol                                                                     #
# Date: 10/6/2025                                                                                                                     #
#                                                                                                                                     #
############################################################### Read Me ############################################################### 
#                                                                                                                                     #
#=====================================================================================================================================#


### Instructions

1. Run recoding_datasets.R to create recoded datasets
2. Run power_simulations.R to produce "simulation results.RData"
3. Run main_analysis.do to produce all results reported in the main text and appendices. Note that this code does not automatically create "Marginal Effects for Figures.xlsx" -- this file was assembled manually.
4. Run figures.R to create all figures in main text and appendices


#===========================#====================================================#====================================================#
# File Name                 # Output                                             # Files Required                                     #
#===========================#====================================================#====================================================#
#                           #                                                    #                                                    #
# figures.R                 # Figures 1, 2, 3, A5, A6                            # "simulation results.RData",                        #
#                           #                                                    # "Marginal Effects for Figures.xlsx"                #
#                           #                                                    #                                                    #
# main_analysis.do          # "Marginal Effects for Figures.xlsx"                # pooled_data.xlsx                                   #
#                           #                                                    #                                                    #
# power_simulations.R       # "simulation results.RData"                         # Bovitz2020_coded.xlsx, MTurk2020_coded.xlsx,       #
#                           #                                                    # Lucid2020_coded.xlsx, Lucid2021_coded.xlsx,        #
#                           #                                                    # ANESGSS2020_coded.xlsx, VSG_coded.xlsx             #
#                           #                                                    #                                                    #
# recoding_datasets.R       # Bovitz2020_coded.xlsx, MTurk2020_coded.xlsx,       # Bovitz2020.sav, MTurk2020.sav, Lucid2020.xlsx,     #
#                           # Lucid2020_coded.xlsx, Lucid2021_coded.xlsx,        # Lucid2021.xlsx, ANESGSS2020.dta, VSG.dta           #
#                           # ANESGSS2020_coded.xlsx, VSG_coded.xlsx             #                                                    #                                     
#                           # pooled_data.xlsx                                   #                                                    #                                   
#===========================#====================================================#====================================================#

